#ifndef GLSTUDY_SHADER_H
#define GLSTUDY_SHADER_H

#include "Render.h"

class Shader
{
	static unsigned int compile(const char* path,unsigned int type);
	static unsigned int link(unsigned int vertexShader,unsigned int fragmentShader);
public:
	Shader(const char *vertexPath, const char *fragmentPath);
	~Shader();
	void bind()const;
	void unbind()const;
private:
	unsigned int m_id;

};


#endif //GLSTUDY_SHADER_H
